package homework0309;

public class ThrowDemo {
    public static void main(String[] args) {
        Student ls=new Student();

        try{
            ls.setAge(101);
            System.out.println(ls.getAge());
        }catch (Exception e){
            System.out.println("年龄不对");
        }
    }
}
